﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IndirectX.DXGI;

namespace IndirectX.Direct3D11
{
    public class Device : IDisposable
    {
        public DeviceContext ImmediateContext;

        public Device()
        {
            this.ImmediateContext = new DeviceContext();
        }

        public static void CreateWithSwapChain(DriverType hardware, DeviceCreationFlags debug, SwapChainDescription description, out Device device, out SwapChain swapChain)
        {
            Factory factory = new Factory();
            
            device = new Device();
           
            swapChain = new SwapChain(factory, device, description);
        }

        public void Dispose()
        {
            
        }
    }
}
